-- GENERATED SPELL FOR [Timbermaw Warrior] --


function spell0_6185(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(11977,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6185', 15000, 1)
end

function spell1_6185(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6185', 624, 1)
end

function Sorts_6185(pUnit, Event)
local choix_sorts_6185 = math.random(0, 1)
if choix_sorts_6185 == 0 then
pUnit:RegisterEvent('spell0_6185', 1, 1)
end
if choix_sorts_6185 == 1 then
pUnit:RegisterEvent('spell1_6185', 1, 1)
end
end

function mob6185_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6185', math.random(1500, 3000), 1)
end

function mob6185_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6185_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6185_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6185, 1, 'mob6185_Action')
RegisterUnitEvent(6185, 2, 'mob6185_Leave')
RegisterUnitEvent(6185, 3, 'mob6185_Kill')
RegisterUnitEvent(6185, 4, 'mob6185_Die')
